package cn.shopifymall.bpmn.controller;

import cn.shopifymall.bpmn.dto.BpmnDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2022/12/4 15:55
 * @Version 1.0
 */
@RestController("/bpmn")
public class BpmnServerController {

    @GetMapping("/get")
    String getBpmnXml() {
        return "hello";
    }

    @PostMapping("/save")
    String saveBpmnXml(@RequestBody BpmnDTO bpmnDTO) {
        return "success";
    }
}
